package dashboard.statrpt.field;

public enum RptSnapshotOverview implements RptField {
	
	BeginSnapId("Begin Snap:", 2, Double.class, "Begin Snap Id:"),
	BeginSnapTime("Begin Snap:", 3, String.class, "Begin Snap Time:"),
	
	EndSnapId("End Snap:", 2, Double.class, "End Snap Id:"),
	EndSnapTime("End Snap:", 3, String.class, "End Snap Time:"),
	
	Elapsed("Elapsed:", 3, String.class, "Elapsed:");
	
	private String label;
	private String name;
	private int colIndex;
	private Class type;
	
	RptSnapshotOverview(String name, int colIndex, Class type, String label){
		this.name = name;
		this.colIndex = colIndex;
		this.type = type;
		this.label = label;
	}

	@Override
	public String getFieldName() {
		return name;
	}

	@Override
	public int getColIndex() {
		return colIndex;
	}

	@Override
	public Class getFieldType() {
		return type;
	}
	
	public String getLabel(){
		return label;
	}
	
	public String getKey(){
		return name();
	}
}
